package designPattern.action11.command.c4t8.concrete;

import designPattern.action11.command.c4t8.tools.Camera;
import designPattern.action11.command.c4t8.sketch.Command;

public class OnCameraCommand implements Command {
    Camera camera;

    public OnCameraCommand(Camera camera) {
        this.camera = camera;
    }

    public void execute() {
        camera.on();
    }

    public String getName() {
        return "打开摄像头";
    }
}
